package Test11.topic.cn.tedu;

/*用于设计模式_饿汉式*/
public class seji_eh {
    public static void main(String[] args) {
        Mye q = Mye.getq();
        Mye q1 = Mye.getq();
        System.out.println(q);
        System.out.println(q1);
    }
}
class Mye{
    private Mye(){}
    private static Mye q = new Mye();
    public static Mye getq(){
        return q;
    }
}